<?php

declare (strict_types=1);

namespace app\common\enum\order;

use app\common\enum\EnumBasics;

/**
 * 枚举类：订单来源
 * Class OrderSource
 * @package app\common\enum\order
 */
class OrderSource extends EnumBasics
{
    // 普通订单
    const MAIN = 10;
    // 寄售订单
    const ENTRUST = 20;
    // 折扣订单
    const DISCOUNT = 30;

    /**
     * 获取枚举数据
     * @return array
     */
    public static function data()
    {
        return [
            self::MAIN     => [
                'name'  => '普通订单',
                'value' => self::MAIN,
            ],
            self::ENTRUST  => [
                'name'  => '寄售订单',
                'value' => self::ENTRUST,
            ],
            self::DISCOUNT => [
                'name'  => '限时折扣',
                'value' => self::DISCOUNT
            ]
        ];
    }

}